/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package auditenergetic;

import java.util.Scanner;


public class Clasa_Inertie {
    public static enum Size {MICA,MEDIE,MARE}
   // private static double  mj;  //masa unitara a elem de constr j care intervine in inertia termica
    private static double Aj;  //aria utila fiecarui elem de constr j pe baza dim interioare-metri patrati
    private static double Ad = 10; //aria cladirii sau partii analizat - metri patrati
    private static double raport;
    private static Size s;
  //  public Clasa_Inertie( double a, double ad)
    //{

      /*  mj = new double[3];
       for(int i=0;i<mj.length;i++)
        {
            System.out.print("Masa material "+i+" : ");
            Scanner sc = new Scanner(System.in);
            double n = sc.nextDouble();
            mj[i] = n;
        } */
    //}
    public double getAj()
    {
        return Aj;
    }
    public double getAd()
    {
        return Ad;
    }

    public static double Compute(int ...a)
    {
        double prod = 1;
        double suma = 0;
        for(int i:a)
        {
            Aj = i*2;
            prod = i * Aj;
            suma = suma + prod;
            Aj = 0;
        }

        raport = suma/Ad;
        return raport;

    }
/*    
    public static void Evaluare()
    {
        if(raport <= 149)
            s = Size.MICA;
        else if((raport>=150)&&(raport<=399))
            s = Size.MEDIE;
        else if(raport > 400)
            s = Size.MARE;
        System.out.println("Cladirea face parte din clasa de inertie "+s);
    }*/
}
